const path = require('path')
const rules = require('./webpack.rules');

const copyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
  /**
   * This is the main entry point for your application, it's the first file
   * that runs in the main process.
   */
  entry: './src/main/main.js',
  // Put your normal webpack config below here
  module: {
    rules
  },
  plugins: [
    new copyWebpackPlugin({
      patterns: [{
        from: path.resolve(__dirname, 'src', 'main', 'app'),
        to: path.resolve(__dirname, '.webpack', 'main', 'app')
      }],
    }),
  ],
};
